Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const assert = require('assert'); |
||
11 | describe('AsciiConverterTest', () => { |
||
12 | describe('#test_ascii_converter()', () => { |
||
13 | it('should convert geez number to ascii', () => { |
||
14 | TestCase.geezNumberTestDataProvider().forEach(([$ascii, $geez]) => { |
||
15 | const $result = asciiConverter.convert($geez); |
||
16 | assert.equal($ascii, $result); |
||
17 | }); |
||
18 | }); |
||
19 | }); |
||
20 | |||
21 | describe('#test_invalid_number_throw_exception()', () => { |
||
22 | it('should throws NotGeezArgumentException', () => { |
||
23 | TestCase.invalidNumberDataProvider().forEach(([$value]) => { |
||
24 | assert.throws(() => { |
||
25 | asciiConverter.convert($value); |
||
26 | }, NotGeezArgumentException); |
||
27 | }); |
||
28 | }); |
||
29 | }); |
||
30 | }); |
||
31 |